#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30000
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
#else
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#endif

@interface Accel : NSObject<UIAccelerometerDelegate>
{
	UIAccelerationValue _accelerometer[3];
}

-(void) SetupAccelerometer:(float)AccelerometerFrequency;
-(void) accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)Acceleration;
-(void) GetAccelerometerMatrix:(GLfloat*)matrix;
-(void) GetAccelerometerVector:(double*)AccelValue;

@end
